package com.ruoyi.ativity.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ativity.mapper.ActStudentMapper;
import com.ruoyi.ativity.domain.ActStudent;
import com.ruoyi.ativity.service.IActStudentService;
import com.ruoyi.common.core.text.Convert;

/**
 * 学生信息Service业务层处理
 * 
 * @author YZD
 * @date 2022-07-10
 */
@Service
public class ActStudentServiceImpl implements IActStudentService 
{
    @Autowired
    private ActStudentMapper actStudentMapper;

    /**
     * 查询学生信息
     * 
     * @param id 学生信息ID
     * @return 学生信息
     */
    @Override
    public ActStudent selectActStudentById(Long id)
    {
        return actStudentMapper.selectActStudentById(id);
    }

    /**
     * 查询学生信息列表
     * 
     * @param actStudent 学生信息
     * @return 学生信息
     */
    @Override
    public List<ActStudent> selectActStudentList(ActStudent actStudent)
    {
        return actStudentMapper.selectActStudentList(actStudent);
    }

    /**
     * 新增学生信息
     * 
     * @param actStudent 学生信息
     * @return 结果
     */
    @Override
    public int insertActStudent(ActStudent actStudent)
    {
        return actStudentMapper.insertActStudent(actStudent);
    }

    /**
     * 修改学生信息
     * 
     * @param actStudent 学生信息
     * @return 结果
     */
    @Override
    public int updateActStudent(ActStudent actStudent)
    {
        return actStudentMapper.updateActStudent(actStudent);
    }

    /**
     * 删除学生信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteActStudentByIds(String ids)
    {
        return actStudentMapper.deleteActStudentByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除学生信息信息
     * 
     * @param id 学生信息ID
     * @return 结果
     */
    @Override
    public int deleteActStudentById(Long id)
    {
        return actStudentMapper.deleteActStudentById(id);
    }
}
